package org.dromara.llm.domain.bo;

import org.dromara.llm.domain.SysLlmConfig;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 系统模型配置业务对象 sys_llm_config
 *
 * @author Miles Meng
 * @date 2025-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysLlmConfig.class, reverseConvertGenerate = false)
public class SysLlmConfigBo extends BaseEntity {

    /**
     * 配置ID主键
     */
    @NotNull(message = "配置ID主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配置类型(llm, stt, tts等)
     */
    @NotBlank(message = "配置类型(llm, stt, tts等)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configType;

    /**
     * 服务提供商
     */
    @NotBlank(message = "服务提供商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String provider;

    /**
     * 用户类型(appuser, sysuser)
     */
    private String userType;
    /**
     * 配置名称
     */
    private String configName;

    /**
     * 配置描述
     */
    private String configDesc;

    /**
     * APPID
     */
    private String appId;

    /**
     * API密钥
     */
    private String apiKey;

    /**
     * API密钥
     */
    private String apiSecret;

    /**
     * Access Key
     */
    private String ak;

    /**
     * Secret Key
     */
    private String sk;

    /**
     * API地址
     */
    private String apiUrl;

    /**
     * 是否为默认配置
     */
    private String isDefault;

    /**
     * 状态
     */
    private String state;


}
